<?php
//连接数据库操作
$conn=mysql_connect("localhost","root","365gold");
mysql_select_db("lxtx",$conn);
mysql_query('set names utf8');

//定量
$APPID   = 'wx9692a5d1ecfa16b4';
$MCHID   = '1319572501';
$KEY     = '12345678901234567890123456789012';
$APPSECRET = '3683b66fa5708cdf0802d29f7e2314e2';

//获取session
session_start();
$openid     =   $_SESSION['openid'];     //用户openid
$id_difang  =   $_SESSION['id_difang'];	 //用户所选路线标识符
$id_main	=	$_SESSION['id_main'];    //订单标识符
$is_xiugai 	= 	$_SESSION['is_xiugai'];  //个人中心是否显示返回订单标识

//更新session 以防页面过期
$_SESSION['openid']   =   $openid;      
$_SESSION['id_difang']=   $id_difang;	  
$_SESSION['id_main']  =   $id_main;     
$_SESSION['is_xiugai']=   $is_xiugai;   


//PHP函数
?>